﻿# CMakeList.txt: 顶层 CMake 项目文件，在此处执行全局配置
# 并包含子项目。
#
cmake_minimum_required (VERSION 3.8)

project ("DM")


if(WIN32)
	add_definitions("-DDM_PLATFORM_WINDOWS -DDM_BUILD_DLL")
endif()

include_directories("vendor/SDL2/include"
"DM/src/"
"vendor/glfw/include"
"vendor/glad/include"
"vendor/imgui/")

# 包含子项目。
link_directories("vendor/SDL2/lib/x64"
"vendor/glfw/lib-vc2019")

add_subdirectory ("DM")
add_subdirectory("vendor/glad")
add_subdirectory("vendor/imgui")
add_subdirectory("SandboxApp")
